<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  const a = new Promise((resolve, reject)=>{
    setTimeout(()=>{
      console.log('please change promise state!!')
      //change Promise state
      resolve()
    },3000)
  })
  async function getData(){

    console.log('async and await first text!!!')
    console.log('listen a state',a)

    await a

    console.log('listen a state',a)
    console.log("Sorry! i have to wait Promise state is not Pending!!")

  }
  getData()


</script>
</body>
</html>